package com.zhima.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zhima.enums.Sex;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author zhima
 * @since 2023-08-23
 */
@Data
@TableName("oj_user")
@ApiModel(value = "OjUser对象", description = "")
public class OjUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("用户名")
    @TableField("user_name")
    private String userName;

    @ApiModelProperty("手机号")
    @TableField("phone")
    private String phone;

    @ApiModelProperty("密码（加密后的）")
    @TableField("password")
    private String password;

    @ApiModelProperty("头像地址")
    @TableField("avatar_uri")
    private String avatarUri;

    @ApiModelProperty("性别，1表示男，0表示女")
    @TableField("sex")
    private Sex sex;

    @ApiModelProperty("邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty("真名")
    @TableField("real_name")
    private String realName;

    @ApiModelProperty("生日")
    @TableField("birthday")
    private Date birthday;

    @ApiModelProperty("个人介绍")
    @TableField("introduction")
    private String introduction;
}
